﻿/// <reference path="_namespace.js" />
//TODO: Change (global replace) "ajax.drawing" Application namespace to your preference.

/*****************************************************************************
MS Ajax library Interface definition.
Author: krobinson 10/6/2008 12:35:52 PM.
Class:  ajax.drawing.IGraphics
*****************************************************************************/

$addNamespace("ajax.drawing");
//-----------------------------------------------------------------------------

ajax.drawing.IGraphics = function(){}; // ctor should be blank.
$extend("ajax.drawing.IGraphics", ""); // You may also inherit from another interface.
//-----------------------------------------------------------------------------

// Public members
//-----------------------------------------------------------------------------

// Public Methods
//-----------------------------------------------------------------------------
ajax.drawing.IGraphics.prototype =
{
    setScale:       function(scale){},
    getScale:       function(){},
    width:          0,
    height:         0,
    setColor:       function(colour){},
    drawLine:       function(x1, y1, x2, y2){},
    drawPolyline3:  function(x1, y1, x2, y2, x3, y3){},
    drawRect:       function(x, y, width, height){},
    fillRect:       function(x, y, width, height){},
    drawPolygon3:   function(x1, y1, x2, y2, x3, y3){},    
    fillPolygon3:   function(x1, y1, x2, y2, x3, y3){},
    fillArc:        function(x, y, width, height, startAngle, arcAngle){},
    drawEllipse:    function(x, y, width, height){},
    fillEllipse:    function(x, y, width, height){},    
    setFont:        function(fontFamily, size, style){},
    drawString:     function(str, x, y){},
    addImage:       function(strFullUrl){},
    drawImage:      function(domImage, x, y, width, height){},
    drawImageFromRect: function(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight){},
    drawImageToRect: function(domImage, destRect){},
    clear:          function(r, g, b){},
    repaint:        function(){},
    hasLoaded:      function() { return true; }
}

// Statics
//-----------------------------------------------------------------------------
ajax.drawing.IGraphics.cast = function(obj)
{///<returns type="ajax.drawing.IGraphics"/>
    return obj;
}